<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="${ctx }/style/css_member.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="${ctx }/js/common.js"></script>
<script type="text/javascript" src="${ctx }/js/jquery-1.3.2.js"></script>
<script language="javascript" type="text/javascript" src="${ctx }/js/My97DatePicker/WdatePicker.js"></script>
<title>推广列表</title>

<style type="text/css">
.queryCondition{font-size: 12px;list-style: none;margin: 0;padding: 0;overflow: hidden;clear: both;}
.queryCondition li{float: left;padding:10px 0px 10px 10px;margin: 0px;}
</style>
<script type="text/javascript">

function search(){

	var actionUrl = "${ctx }/bid/promotionAction!list.do";

	$("#curPage").val(1);
	$("#searchForm").attr("action",actionUrl);
	$("#searchForm").submit();
}
</script>

</head>

<body>

<!-- 页面头部  -->
<jsp:include page="/commons/head_member.jsp"></jsp:include>

<div id="main">
			<form action="${ctx }/bid/promotionAction!list.do" id="searchForm" name="searchForm" method="post">
					<table width="910" border="0" cellspacing="0" cellpadding="0" align="center">
						<tr><td align="left">
								<ul class="queryCondition">
									<li>开始时间：</li>
									<li>
										<input name="startDate" type="text" size="15" onClick="WdatePicker()" value="<fmt:formatDate value='${startDate }' pattern='yyyy-MM-dd'/>">
									</li>
									<li>结束时间：</li>
						            <li>
						            	<input name="endDate" type="text" size="15" onClick="WdatePicker()"  value="<fmt:formatDate value='${endDate }' pattern='yyyy-MM-dd'/>">
						            </li>
									<li><img src="${ctx }/images/an25.gif" width="50" height="21" onclick="return search()" style="cursor: pointer;vertical-align: middle;" ></li>
								</ul>
						</td></tr>
						<tr><td colspan="100%">
							<table width="900" align="center" border="0" cellpadding="0" cellspacing="1" bordercolor="#0099CC" bgcolor="#0099CC" >
							    <tr bgcolor="#CDE1ED">
				                    <td class="nw12b" align="center" height="25">拍品</td>
				                    <td class="nw12b" align="center">领取时间</td>
				                    <td class="nw12b" align="center">领取方式</td>
				                    <td class="nw12b" align="center">加价数</td>
				                    <td class="nw12b" align="center">是否成交</td>
				                    <td class="nw12b" align="center">成交时间</td>
				                    <td class="nw12b" align="center">成交价</td>
				                    <td class="nw12b" align="center">买受人</td>
				                </tr>
				                <c:forEach items="${page.result}" var="result" varStatus="status">                  
					                <tr bgcolor="#FFFFFF">
						                    <td class="nw12b" align="center" height="25">${result.bid.title }</td>
						                    <td class="nw12b" align="center"><fmt:formatDate value="${result.createTime }" pattern="yyyy-MM-dd HH:mm"/></td>
						                    <td class="nw12b" align="center">${result.fetchType }</td>
						                    <td class="nw12b" align="center">${result.bid.bidCount }</td>
						                    <td class="nw12b" align="center">
						                    	<c:if test="${result.knockDownPrice > 0 }">是</c:if>	
						                    	<c:if test="${result.knockDownPrice <= 0 }">否</c:if>	
						                    </td>
						                    <td class="nw12b" align="center"><fmt:formatDate value="${result.bid.endTime }" pattern="yyyy-MM-dd HH:mm"/></td>
						                    <td class="nw12b" align="center">${result.knockDownPrice }</td>
						                    <td class="nw12b" align="center">
							                    <c:if test="${result.bid_status == 2}">
							                   		 ${result.bid.currentBidRecord.customerInfo.userName }
							                    </c:if>
						                    </td>
						             </tr>
					            </c:forEach>
							</table>
					</td></tr>
					<tr>
			              <td colspan="100%" class="nw12a" align="center" height="30"><jsp:include page="/commons/paging_footer.jsp"/> </td>
			        </tr>
				</table>
			</form>
</div>
    
<jsp:include page="/commons/foot_member.jsp"></jsp:include>

</body>
</html>